package thread;

import java.util.Random;

public class Tools {
    public static void randomPause(int timeLimit) throws  Exception{
        Random random = new Random();
        int time = random.nextInt(timeLimit);
        Thread.currentThread().sleep((long)time);

    }
}
